class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.string :user_name, :limit => 32, :null => false
      t.string :user_link, :limit => 64
      t.text :content, :limit => 512, :null => false
      t.integer :computer_id

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end
